<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
	<link href="https://cdn.bootcss.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" rel="stylesheet">
	<script src="https://cdn.bootcss.com/echarts/3.8.4/echarts.min.js"></script>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
	<div class="form-group">
		<input type="text" name='url' class="form-control" id="url">  <button class='btn btn-primary' onclick="detect()">检测</button>
	</div
</body>
<script language="JavaScript">
    function myrefresh()
    {
        window.location.reload();
    }
    //setTimeout('myrefresh()',2000);
	
	function detect(){
		var url = $("#url").val();
		var data = {
			url:url
		}
		$.post('/pagedetect/detect/',data,function(data,status,xhr){
			alert(data);
		});
	}
	function clear_queue(ip){
		var data = {
			addr:ip
		}
		$.post('/queuesmonitor/clear/',data,function(data,status,xhr){
			alert(data);
		});
	}
</script> 
</html>
